package com.wcx.application.mapper;


import com.wcx.application.domian.ChatList;
import com.wcx.application.domian.ChatMessage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface ChatMapper {


    Integer isFirstChat(String fromUser, String toUser);

    void InitList(ChatList chatList);

    void InitMessage(ChatMessage chatMessage);

    void updateLast(Boolean latest);

    List<ChatList> getList(String fromId);

    List<ChatMessage> getMessage(String fromId, String toId);

    List<ChatMessage> ChatMessageSearch(String fromId);

    List<ChatMessage> getChatMessagejianl(String fromId);
}